std::sqrt

From Cppreference

Jump to: navigation, search
Defined in header <cmath>

float       sqrt( float arg );

double      sqrt( double arg );

long double sqrt( long double arg );

Computes square root of arg.

Parameters

arg - floating point value

Return value

square root of arg.

Domain error occurs if arg is negative. ​NAN​ is returned in that case.

See also

cbrt (C++0x)
cubic root
(function)
pow
returns the given number raised to the given power
(function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages